package com.chenjj.java.juc.tools.countdownlatch;

import java.util.concurrent.CountDownLatch;

public class DataHealthCheck extends AbstractHealthCheckService {

    public DataHealthCheck(CountDownLatch latch) {
        super("DataHealthCheck", latch);
    }

    @Override
    public void verifyService() {
        System.out.println("DataHealthCheck verifing...");
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("DataHealthCheck verifing success");
    }
}
